package com.dxids.les;

import android.os.Bundle;
import android.os.StrictMode;

import com.dxids.les.common.Printer;

import java.util.Objects;

import io.flutter.embedding.android.FlutterActivity;

public class MainActivity extends FlutterActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
        StrictMode.setThreadPolicy(policy);
        Printer.createChannel(Objects.requireNonNull(getFlutterEngine()).getDartExecutor().getBinaryMessenger());
    }
}